package com.mall.order;

import com.mall.order.dto.*;

/**
 *  ciggar
 * create-date: 2019/7/30-上午9:13
 * 订单相关业务
 */
public interface OrderCoreService {

    /**
     * 创建订单
     *
     * @param request
     * @return
     */
    CreateOrderResponse createOrder(CreateOrderRequest request);

    /**
     * 删除订单
     *
     * @param request
     * @return
     */
    DeleteOrderResponse deleteOrder(String orderId);

    /**
     * 取消订单
     *
     * @param request
     * @return
     */
    CancelOrderResponse cancelOrder(CancelOrderRequest request);

    /**
     * @author: lsy
     * @title: payOrderSuccess
     * @description: 根据orderId去订单表改支付信息
     * @param: [payOrderSuccessRequest]
     * @return: com.mall.order.dto.PayOrderSuccessResponse
     */
    PayOrderSuccessResponse payOrderSuccess(PayOrderSuccessRequest payOrderSuccessRequest);
    /**
     * @author: lsy
     * @title: updateStockLockCount
     * @description: 根据传来的商品id的 减少库存锁定数量减少库存
     * @param: [updateStockLockCountRequest]
     * @return: com.mall.order.dto.UpdateStockLockCountResponse
     */
    UpdateStockLockCountResponse updateStockLockCount(UpdateStockLockCountRequest updateStockLockCountRequest);
}


